﻿@model ContentResourcePictureDto
@{
    var x = @Html.EasyUi();
    var id = Guid.NewGuid().ToString("N");
}
<div style="width: 100%; height: 50px;" id="@(id)" name="PictureDtos">
    @Html.Ui().Attachment().SingleEdit($"PictureDtos[{Model.SortId}].Picture", Model.Picture)
    <span class="l-btn-left l-btn-icon-left" style="float: right" onclick="atlas_delete_picture('@(id)')">
        <span class="l-btn-text l-btn-empty">&nbsp;</span>
        <span class="l-btn-icon icon-cancel">&nbsp;</span>
    </span>
    <textarea rows="3" cols="120" name="PictureDtos[@(Model.SortId)].Explain" style="float: right">@(Model.Explain)</textarea>
    <input type="text" name="PictureDtos[@(Model.SortId)].SortId" value="@(Model.SortId)" hidden="" />
    <input type="text" name="PictureDtos[@(Model.SortId)].ContentResourceId" value="@(Model.ContentResourceId)" hidden="" />
</div>
